<%--
  Created by IntelliJ IDEA.
  User: yangzj321
  Date: 2024/10/20
  Time: 15:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="java.util.Date" %>
<%@ page import="com.imau.bean.Book" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Jsp hello</title>
</head>
<%
    String name = "这个jsp里面的Java代码 ";
    Book book = new Book();
    book.setId(11);
    book.setDescription("书本的描述");
    book.setType("计算机理论");
    book.setName("javaweb jsp");
    request.setAttribute("book",book);
%>
<jsp:useBean id="book" beanName="book" class="com.imau.bean.Book">

</jsp:useBean>
<body>
<%@include file="index.jsp"%>
<h1>Hello Jsp</h1>
<h2><%= name %></h2>
<h3><%response.getWriter().write ("jsp页面输出内容...");%></h3>


<h4><jsp:getProperty name="book" property="name"/></h4>

</body>
</html>
